<template>
  <vueScroll>
    <div id="app">
        <router-view v-if="isRouterAlive"/>
    </div>
  </vueScroll>
</template>

<script>
export default {
  name: 'App',
  provide() {
    return {
      reload: this.reload
    }
  },
  data() {
    return {
      isRouterAlive: true
    }
  },
  methods: {
    reload() {
      this.isRouterAlive = false
      this.$nextTick(function() {
        this.isRouterAlive = true
      })
    }
  }
}
</script>
<style>
  .content{
    padding: 20px 15px 15px 15px;
  }
  .form-content{
    padding: 20px;
  }
  .el-select--medium{
    width: 100%;
  }
</style>
